<?php

class UserEventStatus extends \Phalcon\Mvc\Model
{

    /**
     *
     * @var integer
     */
    public $id;

    /**
     *
     * @var integer
     */
    public $event_id;

    /**
     *
     * @var integer
     */
    public $user_id;

    /**
     *
     * @var string
     */
    public $status;

    /**
     *
     * @var string
     */
    public $date_created;

    /**
     *
     * @var string
     */
    public $date_modified;

    /**
     * Independent Column Mapping.
     */
    public function columnMap()
    {
        return array(
            'id' => 'id', 
            'event_id' => 'event_id', 
            'user_id' => 'user_id', 
            'status' => 'status', 
            'date_created' => 'date_created', 
            'date_modified' => 'date_modified'
        );
    }

    public function beforeValidationOnCreate()
    {
        $this->date_created = CURR_DATE;       
    }

    public function beforeValidationOnUpdate()
    {
        $this->date_modified = CURR_DATE;
    }

}
